package com.example.miniioc;

import com.example.miniioc.config.AppConfig;
import com.example.miniioc.core.MiniApplicationContext;
import com.example.miniioc.service.Product;
import com.example.miniioc.service.Student;

public class AppTest {
    public static void main(String[] args) {
        MiniApplicationContext context = new MiniApplicationContext(AppConfig.class);

        Product product = context.getBean("product", Product.class);
        Student student = context.getBean("student", Student.class);

        System.out.println(product);
        System.out.println(student);
    }
}
